package io.renren.modules.generator.dao;

import io.renren.modules.generator.entity.WebRotationEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 首页轮播图表
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2020-11-20 11:07:46
 */
@Mapper
public interface WebRotationDao extends BaseMapper<WebRotationEntity> {

      /**
     * 查询最大的排序码
     * @return
     */
    Integer queryMaxSort();

    /**
     * 获取轮播图
     * @return
     */
    @Select("select * from web_rotation")
    List<WebRotationEntity> getSideList();
}
